package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

public class AbnormalDataDto {

    @Data
    @ApiModel("异常数据规则新增/修改")
    public static class RuleInsert{
        private Long id;
        @ApiModelProperty("异常规则类型(0：变量必填；1：变量取值范围；)")
        private Byte type;
        @ApiModelProperty("规则名称")
        private String name;
        @ApiModelProperty("最小值(秒)")
        private Integer minValue;
        @ApiModelProperty("最大值(秒)")
        private Integer maxValue;
        @ApiModelProperty("是否必填(0：是；1：否)")
        private Byte must;
        @ApiModelProperty("描述")
        private String remark;
    }

    @Data
    @ApiModel("异常数据规则删除")
    public static class RuleDelete{
        private List<Long> idList;
    }

    @Data
    @ApiModel("异常数据规则查询")
    public static class RuleQuery{
        @ApiModelProperty("规则名称")
        private String name;
    }

    @Data
    @ApiModel("异常数据规则新增/修改")
    public static class AbnoRuleInsert{
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("类别")
        private Long projectCategoryId;
        @ApiModelProperty("规则编号")
        private String num;
        @ApiModelProperty("规则名称")
        private String name;
        @ApiModelProperty("分子变量")
        private String molecule;
        @ApiModelProperty("分母变量")
        private String denominator;
        @ApiModelProperty("计算公式")
        private String formula;
        @ApiModelProperty("描述")
        private String remark;
    }

}
